pattern n. 1.模范,榜樣;典范。 2.型,模型;模式;雛型;【冶金】原型。 3.花樣;式樣;(服裝裁剪的)紙樣;圖案,圖譜,圖表;機構,結構;特性曲線;晶體點陣;(電視的)幀面圖像。 4.方式;形式;格局;格調。 5.(衣料等的)樣品,樣本,樣板。 6.〔美國〕一件衣料。 7.(炮彈等的)散布面;靶子上的彈痕。 8.(飛機的)著陸航線。 a pattern wife 模范妻子。 a paper pattern for a dress 女服紙樣。 a machine of a new [an old] pattern新[舊]型機器。 a cropping pattern農作制。 after the pattern of 仿…。 vt. 1.照圖樣做;仿造,摹制 (after; upon)。 2.給…加花樣,用圖案裝飾。 3.〔英方〕與…相比 (to, with)。 vi. 形成圖案。 pattern oneself after 模仿,學…的榜樣。 adj. -ed 仿造的;被組成圖案的(patterned forms【語言學】 仿造詞)。 n. -ing 圖案結構,圖形;(行為等的)特有型式。 adj. -less 無圖案的。
Design patterns are also used to increase the reusability as rup advocated . the abstract factory , observer and iterator patterns is introduced Rup過程鼓勵復用,設計過程中使用很多設計模式來增加復用性,如抽象工廠、觀察者模式和迭代器模式等。
百科解釋
In object-oriented programming, the iterator pattern is a design pattern in which an iterator is used to traverse a container and access the container's elements. The iterator pattern decouples algorithms from containers; in some cases, algorithms are necessarily container-specific and thus cannot be decoupled.